package yf.mall.dysdk.model.product;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.List;

/**
 * @author yxmds
 */
@Data
public class DyProductList {

    @JSONField(name = "products")
    private List<DyProduct> products;

    @JSONField(name = "total")
    private Integer total;

    @JSONField(name = "error_code")
    private Integer errorCode;

    @JSONField(name = "description")
    private String description;

    public DyProductList() {
    }

    public DyProductList(List<DyProduct> products, Integer total, Integer errorCode, String description) {
        this.products = products;
        this.total = total;
        this.errorCode = errorCode;
        this.description = description;
    }
}
